package wechat.bean.request.menu;

import java.util.List;

public class MenuBean {
	public static final String Menu_Click = "click";
	public static final String Menu_View = "view";
	public static final String Menu_Scancode_push = "scancode_push";
	public static final String Menu_Scancode_waitmsg = "scancode_waitmsg";
	public static final String Menu_Pic_sysphoto = "pic_sysphoto";
	public static final String Menu_Pic_photo_or_album = "pic_photo_or_album";
	public static final String Menu_Pic_weixin = "pic_weixin";
	public static final String Menu_Location_select = "location_select";
	public static final String Menu_Media_id = "media_id";
	public static final String Menu_View_limited = "view_limited";
	
	
	/**
	 * 一级菜单数组，个数应为1~3个
	 */
	private List<MenuBean> button;
	/**
	 * 二级菜单数组，个数应为1~5个
	 */
	private List<MenuBean> sub_button;
	/**
	 * 菜单的响应动作类型
	 */
	private String type;
	/**
	 * 菜单标题，不超过16个字节，子菜单不超过40个字节
	 */
	private String name;
	/**
	 * click等点击类型必须 菜单KEY值，用于消息接口推送，不超过128字节
	 */
	private String key;
	/**
	 * view类型必须 网页链接，用户点击菜单可打开链接，不超过1024字节
	 */
	private String url;
	/**
	 * media_id类型和view_limited类型必须 调用新增永久素材接口返回的合法media_id
	 */
	private String media_id;
	/**
	 * 个性化菜单规则
	 */
	private Matchrule matchrule;
	
	
	public List<MenuBean> getButton() {
		return button;
	}
	public void setButton(List<MenuBean> button) {
		this.button = button;
	}
	public List<MenuBean> getSub_button() {
		return sub_button;
	}
	public void setSub_button(List<MenuBean> sub_button) {
		this.sub_button = sub_button;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getMedia_id() {
		return media_id;
	}
	public void setMedia_id(String media_id) {
		this.media_id = media_id;
	}
	public Matchrule getMatchrule() {
		return matchrule;
	}
	public void setMatchrule(Matchrule matchrule) {
		this.matchrule = matchrule;
	}
	
	
	
}
